package com.zju.springboot.db.redis.bean;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author 况祥彬
 * @date 2020/12/4 23:46
 **/
@Data
@NoArgsConstructor
public class Person implements Serializable {

    private static final long serialVersionUID = -8985545025228238754L;

    String id;
    String firstname;
    String lastname;
    Address address;   //注意这里，不是基础数据类型

    public Person(String firstname, String lastname) {
        this.firstname = firstname;
        this.lastname = lastname;
    }
}
